import './activity.css'
import React from 'react'
import ActivityCreation from './activity_creation.js'
import TableController from '../widget/table_controller'
import DataTable from '../widget/data-table.js'



const Register = (props) => (
    <TableController routes={[
        {
            path: props.match.url + '/create',
            name: '活动创建',
            component: ActivityCreation,
            api: '/activity'
        },
        {
            path: props.match.url + '/table',
            name: '活动数据',
            component: DataTable,
            api: '/activity',
            key:'id',
            btns: 'deleteBtn'
        }
    ]} />
)

export default Register;